﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NPredictor.Utils
{
	public static class StringUtil
	{
		public static IEnumerable<String> Prefixes(this String word)
		{
			for (int position = 0; position < word.Length; position++)
				yield return word.Substring(0, position + 1);
		}
	}
}